//
//  AddressEditView.m
//  YYPHSpeedJump
//
//  Created by sujiang on 16/1/7.
//  Copyright © 2016年 sujiang. All rights reserved.
//

#import "AddressEditView.h"

@implementation AddressEditView

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self addSubviews];
    }
    return self;
}

- (void)addSubviews
{
    self.receiverTF = [[PasswordTextField  alloc]initWithFrame:CGRectMake(0, 7, kScreenWidth, 44)];
    self.receiverTF.font = [UIFont systemFontOfSize:12];
    self.receiverTF.backgroundColor = [UIColor whiteColor];
    self.receiverTF.placeholder = @"收货人";
    [self addSubview:self.receiverTF];
    // [self.receiverTF invalidateIntrinsicContentSize];
    self.phoneTF = [[PasswordTextField  alloc]initWithFrame:CGRectMake(0, 52, kScreenWidth, 44)];
    self.phoneTF.font = [UIFont systemFontOfSize:12];
    self.phoneTF.backgroundColor = [UIColor whiteColor];
    self.phoneTF.placeholder = @"联系电话";
    self.phoneTF.keyboardType = UIKeyboardTypeNumberPad;
    [self addSubview:self.phoneTF];
    self.postCodeTF = [[PasswordTextField  alloc]initWithFrame:CGRectMake(0, 97, kScreenWidth, 44)];
    self.postCodeTF.font = [UIFont systemFontOfSize:12];
    self.postCodeTF.backgroundColor = [UIColor whiteColor];
    self.postCodeTF.placeholder = @"邮政编码";
    self.postCodeTF.keyboardType = UIKeyboardTypeNumberPad;
    [self addSubview:self.postCodeTF];
    self.addressTF = [[PasswordTextField  alloc]initWithFrame:CGRectMake(0, 142, kScreenWidth, 44)];
    self.addressTF.font = [UIFont systemFontOfSize:12];
    self.addressTF.backgroundColor = [UIColor whiteColor];
    self.addressTF.placeholder = @"详细地址";
    [self addSubview:self.addressTF];

}

@end
